Repository navigation
feat(nav3): [Part 2] Record why back stack entries are /unknown - #6801
Open
0xadam-brown wants to merge 1 commit into
Open
0xadam-brown wants to merge 1 commit into
0xadam-brown wants to merge 1 commit into
Conversation
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, reach, host performance. This label is a hint for reviewers, not an approval. |
Contributor
|
An entry recorded as /unknown didn't say why, so outside debug logs a mapper that threw, returned a blank name, or chose not to name an entry all looked the same. Record the reason next to the entry as unknown_entry_reason in the back stack context and the nav transaction's data, and as to_unknown_entry_reason and from_unknown_entry_reason on breadcrumbs. The values are mapping_failed, blank_name, and unmapped. A mapper that throws now records mapping_failed as its unknown entry reason instead of as its arguments' drop reason, so one cause has one name.
0xadam-brown
force-pushed
the
feat/nav3-serial-name-stack-3
branch
from
November 27, 2026 15:27
fb33ea0 to
9909415
Compare
4 of 9 tasks
📲 Install BuildsAndroid
|
This was referenced Nov 27, 2026
0xadam-brown
marked this pull request as ready for review
November 27, 2026 17:23
0xadam-brown
requested review from
markushi and
romtsn
and removed request for
a team
November 27, 2026 17:23
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (Nav3 SerialName Mapper)
This stack replaces the
SerialNamehalf of #6696.SerialNameAndPropertieswill follow in its own stack.This PR replaces #6781. A restack that moved this change below the
SerialNamemapper caused GitHub to mark #6781 as merged, though nothing was merged. Its earlier review discussion is still there.📜 Description
When Sentry can't name a back stack entry, it records the entry as
/unknown. Until now, that's all it recorded. This PR records the reason next to the entry, underunknown_entry_reason:unknown_entry_reasonto_unknown_entry_reason,from_unknown_entry_reasonunknown_entry_reasonBreadcrumbs add the
to_andfrom_prefixes their other keys use (to_arguments,from_arguments), as each describes two entries.For example, a back stack whose top entry's mapper returned
null:This PR adds the reasons that apply to any mapper. They're a fixed set and contain no app data or class names:
unmappednullmapping_failedblank_namePart 3 (#6703) adds the reasons specific to
SerialName, and the side channel it uses to report them while still returningnull.The transaction name stays
/unknown, so unnamed screens don't add transaction names.💡 Motivation and Context
/unknownalone doesn't say what went wrong. A mapper that threw, returned a blank name, or chose not to name an entry all look the same outside debug logs. And all unnamed screens share one transaction name, so a broken setup can look like an app with few screens rather than a problem.This records the reason where users already look, without changing the public
map()contract.addresses: JAVA-787 (link)
"unknown_entry_reason": "mapping_failed"instead of"dropped_by_sentry": "mapping_failed"in the entry's arguments, so one cause has one name.mapping_failedshipped in 8.65.1 as an argument drop reason, so this changes a released value. The CHANGELOG says so.nav.unknown_entry_reasontransaction tag. That's a product question, and the tag is easy to add later.💚 How did you test it?
BackStackConverterTest), the observer's breadcrumbs, back stack context, and transaction data (BackStackObserverTest), the entry's serialized form (NormalizedSentryBackStackEntryTest), and the transaction request (NavTransactionRequestTest)NavDataContractTestpins each displayed key and value📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
🤖 Generated with Claude Code